package com.yhf.controller;

import com.yhf.pojo.User;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

@Controller
public class UserController {
    @RequestMapping("user/{id}")
    @ResponseBody
    public User getUser(@PathVariable Long id){
        User user = new User(id,"12","as","df",12,"123@qq.com");
        return user;
    }

}
